<html>
<!-- =====================================================================

  File:      Currency.htm for Adventure Works Cycles Storefront Sample
  Summary:   Self-documentation for application
  Date:	     August 12, 2003

=====================================================================

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= -->
    <head>
        <title>Adventure Works Cycles Store Documentation</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <h1>"Currency" User Defined Type</h1>

        <b>Description:</b>

        <P>This user defined type represents a specific quantity of money in a specific culture's monetary system.  For
        example, 12 US Dollars or 15 Euros.  The script below exposes the <a href="Currency.htm">Currency</a>&nbsp; managed class 
        in the AdventureWorks CLR sample as the Currency user
        defined type in the Adventure Works Cycles database.  Instances of this user defined type are created by the 
        <a href="DBO.ConvertCurrency.htm">ConvertCurrency</a>&nbsp; user defined function which is based on the managed 
        method <a href="CurrencyConverter_cs.htm">ConvertCurrency</a> in the same assembly.</P>

        <b>Definition:</b>

<pre style="background-color:white">
<span style="color: #0000FF"><strong>CREATE</strong></span> <span style="color: #0000FF"><strong>TYPE</strong></span> Currency <span style="color: #0000FF"><strong>EXTERNAL</strong></span> <span style="color: #0000FF"><strong>NAME</strong></span> [CurrencyType].[Microsoft.Samples.SqlServer.Currency];

</pre>

    </body>
</html>
